﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace RIBA.Helper
{
	public class IsParameterEqualBindedValue_Converter : IValueConverter
	{
		public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
		{
			if (value == null)  // if CurrentLanguage is not initially set
				return false;
			return parameter.ToString().ToLower() != value.ToString().ToLower();
		}

		public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
		{
			throw new NotImplementedException();
		}
	}
}
